package com.hex.ds.hdrs.log.service;

import com.hex.ds.hdrs.log.dao.RunningStateLogHisDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;


@Slf4j
@Service
public class RunningStateLogHisService {

    @Autowired
    private RunningStateLogHisDao runningStateLogHisDao;

    /**
     * @Method: dataBackup <br>
     * @Param: [map] <br>
     * @Return: void <br>
     * @Description：备份运行状况日志数据<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/3 16:29 <br>
     * @Version： V1.0<br>
     */
    public void dataBackup(Map map) {
        runningStateLogHisDao.dataBackup(map);
    }

    /**
     * @Method: delByBitchId <br>
     * @Param: [bitchId] <br>
     * @Return: void <br>
     * @Description：根据批次号删除运行状况日志数据<br>
     * @Author： gc.zuo<br>
     * @Date： 2021/6/3 16:30 <br>
     * @Version： V1.0<br>
     */
    public void delByBitchId(String bitchId) {
        Map map = new HashMap(16);
        map.put("bitchId", bitchId);
        runningStateLogHisDao.delByBitchId(map);
    }
}
